home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-03-06 | 1.1 KB | 36 lines |
- '==================
- Rem example10.amos
- '==================
-
-
- Rem display bob 1 from a loaded sprite file
-
- Rem the usual stuff, not forgetting FLASH OFF, try it without it!
- '----------------------------------------------------------------
- Flash Off : Curs Off : Paper 0 : Hide : Cls 0
-
-
- Rem load the sprite bank into bank 1
- '-----------------------------------
- Load "df0:bobs/spacecraft.abk",1
-
-
- Rem use the colours from the sprite bank, try it without this line to see effect
- '-------------------------------------------------------------------------------
- Get Sprite Palette
-
-
- Rem the meat, display BOB 1 at 10 pixels across and 100 pixels down the screen
- Rem the 1 on the end is the image from the bank to display. Change it!!!
- '------------------------------------------------------------------------------
- Bob 1,10,100,1
-
-
- Rem CLEAR the KEYboard buffer of key presses and WAIT for a KEY press
- '---------------------------------------------------------------------
- Clear Key : Wait Key
-
-
- Rem display the contents of the memory banks
- '-------------------------------------------------
- List Bank